import React, { ReactElement } from 'react'
import { Button } from 'antd'
import Cook from 'js-cookie'
import { history } from 'umi'


interface Props {
    
}

function login() {
    Cook.set("token", "123456")
    history.push('/')
}


export default function Login({}: Props): ReactElement {
    
    return (
        <div>
            <Button onClick={login} type="primary">登录</Button>
        </div>
    )
}
